package com.lovo.roomProject.classManager.service.impl;

import com.lovo.roomProject.classManager.dao.ClaszDAO;
import com.lovo.roomProject.classManager.dao.impl.ClaszDAOImpl;
import com.lovo.roomProject.classManager.service.ClaszService;
import com.lovo.roomProject.pojo.ClaszDO;
import com.lovo.roomProject.pojo.CutPageBean;


import java.util.List;

public class ClaszServiceImpl implements ClaszService {

    private ClaszDAO claszDAO = new ClaszDAOImpl();

    @Override
    public List listClasz() {
        return claszDAO.listClasz();
    }

    @Override
    public void insert(ClaszDO claszDO) {
        claszDAO.insert(claszDO);
    }

    @Override
    public void delete(int id) {
        claszDAO.delete(id);
    }

    @Override
    public CutPageBean listClaszByPage(int current) {
        return claszDAO.listClaszByPage(current);
    }
}
